<div class="alarmplatform-title">
	告警台
</div>
<div class="container-fluid alarmplatform-container">
	<div class="row-fluid">
		<div class="alertplatform-options">
			<div class="alertplatform-nav">
				<div class="alarm-type">
					<label>
						<input type="radio" name="alarm-type" {{action "tabshow" "1"}}>&nbsp;严重	
					</label>&nbsp;&nbsp;
					<span class="label label-important">{{form.alarmNum1}}</span>
				</div>
				<div class="alarm-type">
					<label>
						<input type="radio" name="alarm-type" {{action "tabshow" "2"}}>&nbsp;警告
					</label>&nbsp;&nbsp;
					<span class="label label-warning">{{form.alarmNum2}}</span>
				</div>
				<div class="alarm-type">
					<label>
						<input type="radio" name="alarm-type" {{action "tabshow" "3"}}>&nbsp;提醒
					</label>&nbsp;&nbsp;
					<span class="label label-info">{{form.alarmNum3}}</span>
				</div>
			</div>
			<div {{bind-attr class=":alert alertType saveResult::hide"}}><strong>{{saveResult}}</strong></div>
			<div class="tab-content">
				<div class="alarm-form-tab">
					<div class="control-group">
						<span class="alarm-form-th">发生时间:</span>
						{{!-- {{view view.Inputdate showTrigger=true date=form.firstTime}}  --}}
						<div class="inline calendar-box-wrapper">
							{{view view.daterangepicker
								id="dateRangePicker"
								timeRanges="timeRangesChange"
								class=""
								position="right"
								whenDate="7"
							}}
						</div>
					</div>
					<div class="control-group">
						<span class="alarm-form-th">告警类型:</span>
						 {{!-- {{view "select" 
						class="span2" 
						content=types
						optionLabelPath="content.name"
						optionValuePath="content.code"
						value=form.alarmType}} --}}
 						
						{{view view.select 
							class="form-top-select form-top-select-app span2 custom-select-style alarmType"
							content=types
							selectValue=form.alarmType
							optionLabelPath="name"
							optionValuePath="code"
						}} 
						<span class="alarm-form-th">告警来源:</span>
						{{input class="input span2 u-input-blue mouseKeyUp" placeholder="请输入文字" value=form.source}}&nbsp;
                        <span class="alarm-form-th">描述:</span>
						{{input class="input span2 u-input-blue mouseKeyUp" placeholder="请输入文字" value=form.key}}&nbsp;
					</div>
					<div class="control-group">
						<span class="alarm-form-th">告警状态:</span>
						{{!-- {{view "select" class="span2" content=clearStatuss
						optionLabelPath="content.name"
						optionValuePath="content.code"
						value=form.clearStatus}} --}}
						{{view view.select 
							class="form-top-select form-top-select-app span2 custom-select-style currentAlertStatus"
							content=clearStatuss
							selectValue=form.clearStatus
							optionLabelPath="name"
							optionValuePath="code"
						}} 
                        <span class="alarm-form-th">处理状态:</span>
						{{!-- {{view "select" class="span2" content=statuss
						optionLabelPath="content.name"
						optionValuePath="content.code"
						action=queryAlarm
						value=form.status}} --}}
						{{view view.select 
							class="form-top-select form-top-select-app span2 custom-select-style"
							content=statuss
							selectValue=form.status
							optionLabelPath="name"
							optionValuePath="code"
						}} 
                        {{!-- <span class="alarm-form-th">&nbsp;</span>
                        <button class="alarm-form-query u-btn-blue" style="height: 30p;" {{action "queryAlarm"}}>查询</button> --}}
                        {{#unless auth.isNormal}}
							<button class="u-btn-blue alertplatform-nav-clear" {{action "clrAlarm"}} {{bind-attr disabled="clrbtnDisabled"}}>清除告警</button>
							<button class="u-btn-blue alertplatform-nav-confirm" {{action "updAlarm"}} {{bind-attr disabled="btnDisabled"}} >确认告警</button>
						{{/unless}}
					</div>
				</div>
			</div>
		</div>
		<div class="alertplatform-table" style="margin-left:0px;">
			{{!-- <div class="control-group"><br />
				{{#unless auth.isNormal}}
				<div class="controls">
					<button class="btn" {{action "updAlarm"}} {{bind-attr disabled="btnDisabled"}} >确认告警</button>
					<button class="btn" {{action "clrAlarm"}} {{bind-attr disabled="clrbtnDisabled"}}>清除告警</button>&nbsp;
					
				</div>
				{{/unless}}
			</div> --}}
			<div class="control-group">
				{{view view.Grid
					columns=gridColumns
					content=gridDataSource
					allowPaging=true
					pageIndex=pageIndex
					pageSize=pageSize
					totalRows=totalRows
					allowSorting=true
					sorted="gridSorted"
					pageIndexChanged="pageIndexChanged"
					cellClicked="gridCellClicked"}}
			</div>
		</div>
	</div>
</div>
